package com.rock.goc.data.service.impl;

import org.springframework.stereotype.Service;
import java.util.Map;
import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.rock.common.utils.PageUtils;
import com.rock.common.utils.Query;

import com.rock.goc.data.dao.FactoryDao;
import com.rock.goc.data.entity.FactoryEntity;
import com.rock.goc.data.service.FactoryService;


@Service("factoryService")
public class FactoryServiceImpl extends ServiceImpl<FactoryDao, FactoryEntity> implements FactoryService {

    @Override
    public PageUtils queryPage(Map<String, Object> params) {
        IPage<FactoryEntity> page = this.page(
                new Query<FactoryEntity>().getPage(params),
                new QueryWrapper<FactoryEntity>()
        );

        return new PageUtils(page);
    }

}